<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Model extends CI_Model
{
    public $map = NULL;

    public function __construct()
    {
        parent::__construct();
        if ($this->map === NULL) {
            $this->map = new TABLE_CLASS();
        }
    }
}

class MY_AdminModel extends MY_Model
{
    public function __construct()
    {
        parent::__construct();
        $this->_LangLoad(MY_AdminController::$_Lang);
    }

    function _LangLoad($lang)
    {
        $this->lang->load('error', $lang . MY_AdminController::LANG_FOLDER);
        $this->lang->load('form', $lang . MY_AdminController::LANG_FOLDER);
        $this->lang->load('menu', $lang . MY_AdminController::LANG_FOLDER);
        $this->lang->load('message', $lang . MY_AdminController::LANG_FOLDER);
        $this->lang->load('text', $lang . MY_AdminController::LANG_FOLDER);
    }
}